package com.cyy.common.pojo.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Schema(description = "注册请求实体")
@Data
public class RegisterReq {

    @Schema(description = "用户名")
    @NotBlank(message = "username is required")
    private String username;

    @Schema(description = "密码")
    @NotBlank(message = "password is required")
    private String password;

    @Schema(description = "确认密码")
    @NotBlank(message = "checkPwd is required")
    private String checkPwd;

    @Schema(description = "邮箱")
    @NotBlank(message = "email is required")
    private String email;

    @Schema(description = "注册验证码")
    @NotBlank(message = "code is required")
    private String code;
}
